package svc

import (
	"four/sss/weeekapi/internal/config"
	"four/sss/weeekrpc/weeekrpcclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config  config.Config
	WeekRpc weeekrpcclient.Weeekrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		WeekRpc: weeekrpcclient.NewWeeekrpc(zrpc.MustNewClient(c.WeekRpc)),
	}
}
